“The rats are absolutely going to hate this announcement. But the rats don’t run this city, we do.”
Illustration by
Doug Chayka, Source: Getty here
rat_merge_2 =
rat_merge_df |>
ggplot(aes(longitude, latitude)) +
geom_point() +
theme_map()
rat_map =
leaflet(data = rat_merge_df) |>
addTiles() |>
addMarkers(
lng = ~longitude,
lat = ~latitude,
clusterOptions = markerClusterOptions())
rat_map
The leaflet above shows the geographic distribution of rat sightings and where trash was picked up by the NYC Department of Sanitation.
Watch our screencast by clicking the “play” button in the top right corner, or click here!